| Table 30.2 Toolbar Common Properties. |
| Property | Description |
| AllowCustomize | If this property is set to a True value, the user can double-click the toolbar at runtime to invoke the Customize Toolbar dialog box. This allows the user to customize the toolbar by adding and subtracting buttons from it. To enable the user to do this, you must set up different buttons that can be customized as well as provide the ability to save and restore the custom toolbar. |
| BorderStyle | I typically set this property to 1-Fixed Single instead of 0-None to give the toolbar some definition when placed on a form. |
| ButtonHeight | This property determines the height of the buttons at runtime. This property is generally set to the correct value automatically when you set the ImageList property to a valid ImageList control. Remember that an ImageList control only contains images of a certain size, so the buttons can only be a certain height. |
| ButtonWidth | This property determines the width of the buttons at runtime. Like ButtonHeight, this property should be automatically set by the toolbar. |
| Buttons | This property returns a reference to the Buttons collection on the toolbar. Each item in this collection is a Button object. See the next section for a description of Button objects. |
| ImageList | Set this property to a valid ImageList control. This ImageList control must be on the same form as the toolbar control to be set at design time. You can also set this property at runtime. Youll learn how to do this later in the chapter. |
| ShowTips | Set this property to True to be able to display each of the Button objects ToolTipText properties. |
| Wrappable | Set this property to True if you want to have the Button objects wrap to another line when the user resizes the form to a width that will not allow the toolbar to display on one line. |